package com.example.dmtprotocollib;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;

import com.siecom.nativelibs.rkGpioControlNative;

public class gpioserver extends Service{
	private final static String TAG = "gpioserver";
	@Override
	public IBinder onBind(Intent intent) {
		return null;
	}

	@Override
	public void onCreate() {
		// rkGpioControlNative.init();
		super.onCreate();
	}

	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		//rkGpioControlNative.ControlGpio(rkGpioControlNative.GPIO0_B2, 1);
		//Log.d(TAG, "=============== hong rkGpioControlNative.ControlGpio =="+rkGpioControlNative.ReadGpio(rkGpioControlNative.GPIO0_B2));
		return super.onStartCommand(intent, flags, startId);
	}
	
}
